﻿using UnityEngine;
using System.Collections;

public class PlataformDestroy : MonoBehaviour {

	
	public void OnCollisionEnter(Collision collision) {
		if(collision.gameObject.tag == "destroy"/*"Player"*/){
			Debug.Log(collision.gameObject.tag);
			Destroy(gameObject);
		}
	}

//	void OnCollisionEnter(Collision collision) {
//		Debug.Log("AAA");
//		Debug.Log(collision.gameObject.tag);
//	}
}
